home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / gds / source / gds107.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  724 b   |  36 lines

  1.  
  2. /*
  3.  *
  4.  *    GDS106 : 部分画面の消去
  5.  *
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <dos.h>
  10.  
  11. unsigned int GDS_part_clear(signed int x1,signed int y1,signed int x2,signed int y2,unsigned char page) {
  12.    union  REGS  inregs, outregs;
  13.    struct SREGS segregs;
  14.    static struct {
  15.       unsigned char page;
  16.       unsigned char dust;
  17.       signed int x1;
  18.       signed int y1;
  19.       signed int x2;
  20.       signed int y2;
  21.    } work;
  22.  
  23.    work.page=page;
  24.    work.dust=0;
  25.    work.x1=x1;
  26.    work.y1=y1;
  27.    work.x2=x2;
  28.    work.y2=y2;
  29.    segread(&segregs);
  30.    segregs.ds=_DS;
  31.    inregs.x.di=(unsigned int)&work;
  32.    inregs.x.ax=0x8800;
  33.    int86x(0x92,&inregs,&outregs,&segregs);
  34.    return (unsigned int)outregs.h.ah;
  35. }
  36.